package servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Dao.Daocommtype;
import Dao.impl.Daoimplcommtype;
import entity.Commtype;
@WebServlet(name="H_fenleid",urlPatterns="/hfenleid.do")
public class H_fenleid extends HttpServlet {

	public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		int id = Integer.parseInt(request.getParameter("id"));
		Commtype comm = new Commtype();
		comm.setId(id);
		Daocommtype dao = new Daoimplcommtype();
		boolean fan = dao.del(comm);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
